include ../Makefile.include

version   := 2.6.35
build_dir := $(software)-$(version)
source    := $(build_dir).tar.gz

$(build_dir): $(source)
	-rm -rf $(build_dir)
	tar zxvf $(source)
	cd $(build_dir); ./configure

$(package): $(build_dir) 
	-rm -rf tmp
	mkdir -p tmp
	make -C $(build_dir)
	install -m 755 -D $(build_dir)/ethtool tmp/usr/sbin/ethtool
	tar -C tmp -cpzf $@ .

clean: $(software)_clean
	-rm -rf $(build_dir)

